package com.liruo.learn.spring.mvc.model.enumeration;


import com.fasterxml.jackson.annotation.JsonValue;
import com.liruo.learn.spring.mvc.enumconverter.SourceEnum;
import lombok.AllArgsConstructor;

/**
 * @Author:liruo
 * @Date:2023-02-19-14:41:27
 * @Desc
 */
@AllArgsConstructor
public enum GoodEnum implements SourceEnum<Integer> {
    GOOD(10), BAD(11);
    @JsonValue
    private final Integer source;
    @Override
    public Integer getSource() {
        return source;
    }


}
